define([], function() {

function CallbackPass() {
  this.nextActionKey_ = 0;
  this.callbacks_ = {};
};

CallbackPass.prototype.addCallback = function(callback) {
  var key = this.nextActionKey_++;
  this.callbacks_[key] = callback;
  return key;
};

CallbackPass.prototype.execute = function(timeDeltaMillis) {
  for (key in this.callbacks_) {
    this.callbacks_[key](timeDeltaMillis);
  }
};


return CallbackPass;

});
